home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Encarta World Atlas 1999 / Encarta World 99 Install Disk.iso / evg / Flights / SoundsAU.js < prev    next >
Encoding:
JavaScript  |  1998-09-01  |  9.5 KB  |  205 lines

  1. /*****************************************************************************
  2.  SoundsAU.js
  3.  
  4.  Encarta Virtual Globe 1999
  5.  
  6.  (c) Copyright Microsoft Corporation 1998
  7.  
  8.  Populates the sound table for Austrialia. The sound table is comprised
  9.  of a Lat,Long location where the sound is associated with, and an index
  10.  number into the Audio Man control which has the path to the actual sound 
  11.  file. See FlightSounds.xls for the table of sound file and Lat,Long 
  12.  matchings.
  13.  
  14.  Also includes fusion related variables declarations and functions
  15.  because the number of fusion nodes vary between Fly files.
  16.  
  17.  This file is to be included by FlyAus.htm
  18.  
  19.  Owner = WHsu
  20. *****************************************************************************/
  21. var g_numFusionSrcNodes = 21;
  22. var g_FusionSrcNodes = new Array(g_numFusionSrcNodes);            // node object for Fusion URLWav
  23. var g_fFusionSrcNodeLoaded = new Array(g_numFusionSrcNodes);    // if set, node loaded
  24.  
  25. function LoadFusionMedia()
  26. {
  27.     var i;
  28.     for ( i=0; i < g_numFusionSrcNodes; i++ )
  29.     {
  30.         g_fFusionSrcNodeLoaded[i] = false;
  31.     }
  32.     g_FusionSrcNodes[0]  = MediaGraph.Nodes("FusionSrcA");
  33.     g_FusionSrcNodes[1]  = MediaGraph.Nodes("FusionSrcB");
  34.     g_FusionSrcNodes[2]  = MediaGraph.Nodes("FusionSrcC");
  35.     g_FusionSrcNodes[3]  = MediaGraph.Nodes("FusionSrcD");
  36.     g_FusionSrcNodes[4]  = MediaGraph.Nodes("FusionSrcE");
  37.     g_FusionSrcNodes[5]  = MediaGraph.Nodes("FusionSrcF");
  38.     g_FusionSrcNodes[6]  = MediaGraph.Nodes("FusionSrcG");
  39.     g_FusionSrcNodes[7]  = MediaGraph.Nodes("FusionSrcH");
  40.     g_FusionSrcNodes[8]  = MediaGraph.Nodes("FusionSrcI");
  41.     g_FusionSrcNodes[9]  = MediaGraph.Nodes("FusionSrcJ");
  42.     g_FusionSrcNodes[10] = MediaGraph.Nodes("FusionSrcK");
  43.     g_FusionSrcNodes[11] = MediaGraph.Nodes("FusionSrcL");
  44.     g_FusionSrcNodes[12] = MediaGraph.Nodes("FusionSrcM");
  45.     g_FusionSrcNodes[13] = MediaGraph.Nodes("FusionSrcN");
  46.     g_FusionSrcNodes[14] = MediaGraph.Nodes("FusionSrcO");
  47.     g_FusionSrcNodes[15] = MediaGraph.Nodes("FusionSrcP");
  48.     g_FusionSrcNodes[16] = MediaGraph.Nodes("FusionSrcQ");
  49.     g_FusionSrcNodes[17] = MediaGraph.Nodes("FusionSrcR");
  50.     g_FusionSrcNodes[18] = MediaGraph.Nodes("FusionSrcS");
  51.     g_FusionSrcNodes[19] = MediaGraph.Nodes("FusionSrcT");
  52.     g_FusionSrcNodes[20] = MediaGraph.Nodes("FusionSrcU");
  53.  
  54.     MediaGraph.Nodes("FusionSrcA").LoadMedia(false);
  55.     MediaGraph.Nodes("FusionSrcB").LoadMedia(false);
  56.     MediaGraph.Nodes("FusionSrcC").LoadMedia(false);
  57.     MediaGraph.Nodes("FusionSrcD").LoadMedia(false);
  58.     MediaGraph.Nodes("FusionSrcE").LoadMedia(false);
  59.     MediaGraph.Nodes("FusionSrcF").LoadMedia(false);
  60.     MediaGraph.Nodes("FusionSrcG").LoadMedia(false);
  61.     MediaGraph.Nodes("FusionSrcH").LoadMedia(false);
  62.     MediaGraph.Nodes("FusionSrcI").LoadMedia(false);
  63.     MediaGraph.Nodes("FusionSrcJ").LoadMedia(false);
  64.     MediaGraph.Nodes("FusionSrcK").LoadMedia(false);
  65.     MediaGraph.Nodes("FusionSrcL").LoadMedia(false);
  66.     MediaGraph.Nodes("FusionSrcM").LoadMedia(false);
  67.     MediaGraph.Nodes("FusionSrcN").LoadMedia(false);
  68.     MediaGraph.Nodes("FusionSrcO").LoadMedia(false);
  69.     MediaGraph.Nodes("FusionSrcP").LoadMedia(false);
  70.     MediaGraph.Nodes("FusionSrcQ").LoadMedia(false);
  71.     MediaGraph.Nodes("FusionSrcR").LoadMedia(false);
  72.     MediaGraph.Nodes("FusionSrcS").LoadMedia(false);
  73.     MediaGraph.Nodes("FusionSrcT").LoadMedia(false);
  74.     MediaGraph.Nodes("FusionSrcU").LoadMedia(false);
  75. }
  76.  
  77. g_SoundTable[g_Continent_AU] = new Array(25);
  78.  
  79. g_SoundTable[g_Continent_AU][0] = new Array(3);
  80. g_SoundTable[g_Continent_AU][1] = new Array(3);
  81. g_SoundTable[g_Continent_AU][2] = new Array(3);
  82. g_SoundTable[g_Continent_AU][3] = new Array(3);
  83. g_SoundTable[g_Continent_AU][4] = new Array(3);
  84. g_SoundTable[g_Continent_AU][5] = new Array(3);
  85. g_SoundTable[g_Continent_AU][6] = new Array(3);
  86. g_SoundTable[g_Continent_AU][7] = new Array(3);
  87. g_SoundTable[g_Continent_AU][8] = new Array(3);
  88. g_SoundTable[g_Continent_AU][9] = new Array(3);
  89. g_SoundTable[g_Continent_AU][10] = new Array(3);
  90. g_SoundTable[g_Continent_AU][11] = new Array(3);
  91. g_SoundTable[g_Continent_AU][12] = new Array(3);
  92. g_SoundTable[g_Continent_AU][13] = new Array(3);
  93. g_SoundTable[g_Continent_AU][14] = new Array(3);
  94. g_SoundTable[g_Continent_AU][15] = new Array(3);
  95. g_SoundTable[g_Continent_AU][16] = new Array(3);
  96. g_SoundTable[g_Continent_AU][17] = new Array(3);
  97. g_SoundTable[g_Continent_AU][18] = new Array(3);
  98. g_SoundTable[g_Continent_AU][19] = new Array(3);
  99. g_SoundTable[g_Continent_AU][20] = new Array(3);
  100. g_SoundTable[g_Continent_AU][21] = new Array(3);
  101. g_SoundTable[g_Continent_AU][22] = new Array(3);
  102. g_SoundTable[g_Continent_AU][23] = new Array(3);
  103. g_SoundTable[g_Continent_AU][24] = new Array(3);
  104.  
  105. // (+) means expendable, (++) really expendable, first ones to go if need be
  106. g_SoundTable[g_Continent_AU][0][g_indexLat] = -37;
  107. g_SoundTable[g_Continent_AU][0][g_indexLong] = 135;
  108. g_SoundTable[g_Continent_AU][0][g_indexSound] = 1;        // F172388A    -37    135    172388 Australia
  109.  
  110. g_SoundTable[g_Continent_AU][1][g_indexLat] = -37;
  111. g_SoundTable[g_Continent_AU][1][g_indexLong] = 135;
  112. g_SoundTable[g_Continent_AU][1][g_indexSound] = 2;        // F172389A    -37    135    172389 Australia
  113.  
  114. g_SoundTable[g_Continent_AU][2][g_indexLat] = -37;
  115. g_SoundTable[g_Continent_AU][2][g_indexLong] = 135;
  116. g_SoundTable[g_Continent_AU][2][g_indexSound] = 3;        // F172390A    -37    135    172390 Australia
  117.  
  118. g_SoundTable[g_Continent_AU][3][g_indexLat] = 17;
  119. g_SoundTable[g_Continent_AU][3][g_indexLong] = 107;
  120. g_SoundTable[g_Continent_AU][3][g_indexSound] = 4;        // F172500A    17    107    172500 Laos (+)
  121.  
  122. g_SoundTable[g_Continent_AU][4][g_indexLat] = -5;
  123. g_SoundTable[g_Continent_AU][4][g_indexLong] = 145;
  124. g_SoundTable[g_Continent_AU][4][g_indexSound] = 5;        // F172536A    -5    145    172536 Papua New Guinea
  125.  
  126. g_SoundTable[g_Continent_AU][5][g_indexLat] = -8;
  127. g_SoundTable[g_Continent_AU][5][g_indexLong] = 160;
  128. g_SoundTable[g_Continent_AU][5][g_indexSound] = 6;        // F172562A    -8    160    172562 Solomon Is.
  129.  
  130. g_SoundTable[g_Continent_AU][6][g_indexLat] = -17;
  131. g_SoundTable[g_Continent_AU][6][g_indexLong] = -149;
  132. g_SoundTable[g_Continent_AU][6][g_indexSound] = 7;        // F172579A    -17    -149    172579 Tahiti
  133.  
  134. g_SoundTable[g_Continent_AU][7][g_indexLat] = 15;
  135. g_SoundTable[g_Continent_AU][7][g_indexLong] = 103;
  136. g_SoundTable[g_Continent_AU][7][g_indexSound] = 8;        // F172583A    15    103    172583 Thailand (+)
  137.  
  138. g_SoundTable[g_Continent_AU][8][g_indexLat] = -17;
  139. g_SoundTable[g_Continent_AU][8][g_indexLong] = -174;
  140. g_SoundTable[g_Continent_AU][8][g_indexSound] = 9;        // F172586A    -17    -174    172586 Tonga (+)
  141.  
  142. g_SoundTable[g_Continent_AU][9][g_indexLat] = 21;
  143. g_SoundTable[g_Continent_AU][9][g_indexLong] = -158;
  144. g_SoundTable[g_Continent_AU][9][g_indexSound] = 10;        // F172597A    21    -158    172597 Hawaii (++)
  145.  
  146. g_SoundTable[g_Continent_AU][10][g_indexLat] = -37;
  147. g_SoundTable[g_Continent_AU][10][g_indexLong] = 135;
  148. g_SoundTable[g_Continent_AU][10][g_indexSound] = 11;        // F172931A    -37    135    172931 Australia
  149.  
  150. g_SoundTable[g_Continent_AU][11][g_indexLat] = -18;
  151. g_SoundTable[g_Continent_AU][11][g_indexLong] = 178;
  152. g_SoundTable[g_Continent_AU][11][g_indexSound] = 12;        // F172940A    -18    178    172940 Fiji Islands
  153.  
  154. g_SoundTable[g_Continent_AU][12][g_indexLat] = 2;
  155. g_SoundTable[g_Continent_AU][12][g_indexLong] = 108;
  156. g_SoundTable[g_Continent_AU][12][g_indexSound] = 13;        // F172941A    2    108    172941 Malaysia (+)
  157.  
  158. g_SoundTable[g_Continent_AU][13][g_indexLat] = -19;
  159. g_SoundTable[g_Continent_AU][13][g_indexLong] = -159;
  160. g_SoundTable[g_Continent_AU][13][g_indexSound] = 14;        // F172960A    -19    -159    172960 Cook Islands-
  161.  
  162. g_SoundTable[g_Continent_AU][14][g_indexLat] = 0;
  163. g_SoundTable[g_Continent_AU][14][g_indexLong] = 175;
  164. g_SoundTable[g_Continent_AU][14][g_indexSound] = 15;        // F172961A    0    175    172961 Kiribati
  165.  
  166. g_SoundTable[g_Continent_AU][15][g_indexLat] = -12;
  167. g_SoundTable[g_Continent_AU][15][g_indexLong] = 170;
  168. g_SoundTable[g_Continent_AU][15][g_indexSound] = 16;        // F172962A    -12    170    172962 American Samoa
  169.  
  170. g_SoundTable[g_Continent_AU][16][g_indexLat] = 15;
  171. g_SoundTable[g_Continent_AU][16][g_indexLong] = 108;
  172. g_SoundTable[g_Continent_AU][16][g_indexSound] = 17;        // F172974A    15    108    172974 Vietnam (+)
  173.  
  174. g_SoundTable[g_Continent_AU][17][g_indexLat] = -12;
  175. g_SoundTable[g_Continent_AU][17][g_indexLong] = 172;
  176. g_SoundTable[g_Continent_AU][17][g_indexSound] = 18;        // F172977A    -12    172    172977 Samoa
  177.  
  178. g_SoundTable[g_Continent_AU][18][g_indexLat] = -16;
  179. g_SoundTable[g_Continent_AU][18][g_indexLong] = 170;
  180. g_SoundTable[g_Continent_AU][18][g_indexSound] = 19;        // F172978A    -16    170    172978 Niue
  181.  
  182. g_SoundTable[g_Continent_AU][19][g_indexLat] = -22;
  183. g_SoundTable[g_Continent_AU][19][g_indexLong] = 166;
  184. g_SoundTable[g_Continent_AU][19][g_indexSound] = 20;        // F173212A    -22    166    173212 New Caledonia
  185.  
  186. g_SoundTable[g_Continent_AU][20][g_indexLat] = -2;
  187. g_SoundTable[g_Continent_AU][20][g_indexLong] = 120;
  188. g_SoundTable[g_Continent_AU][20][g_indexSound] = 21;        // F175264A    -2    120    175264 Indonesia (+)
  189.  
  190. g_SoundTable[g_Continent_AU][21][g_indexLat] = -1;
  191. g_SoundTable[g_Continent_AU][21][g_indexLong] = 102;
  192. g_SoundTable[g_Continent_AU][21][g_indexSound] = 22;        // F550749A    -1    102    550749 Sumatra-
  193.  
  194. g_SoundTable[g_Continent_AU][22][g_indexLat] = 15;
  195. g_SoundTable[g_Continent_AU][22][g_indexLong] = 108;
  196. g_SoundTable[g_Continent_AU][22][g_indexSound] = 23;        // F556628A    15    108    556628 Vietnam (+)
  197.  
  198. g_SoundTable[g_Continent_AU][23][g_indexLat] = -17;
  199. g_SoundTable[g_Continent_AU][23][g_indexLong] = -174;
  200. g_SoundTable[g_Continent_AU][23][g_indexSound] = 24;        // F999949A    -17    -174    999949 Tonga
  201.  
  202. g_SoundTable[g_Continent_AU][24][g_indexLat] = 12;
  203. g_SoundTable[g_Continent_AU][24][g_indexLong] = 106;
  204. g_SoundTable[g_Continent_AU][24][g_indexSound] = 25;        // F999950A    12    106    999950 Cambodia (+)
  205.